package cn.ut.pc.one.xkb.controller;

import cn.ut.pc.one.xkb.service.EurekaFeignClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiongkaibin
 */
@RestController
public class EurekaFeignClientController {
    @Autowired
    EurekaFeignClientService service;

    @GetMapping("/hi")
    public String sayHi(@RequestParam String name) {
        return service.sayHi(name);
    }
}
